package com.hq.mapper;


import com.hq.entity.Exam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamMapper {
    //查询所有试卷
    List<Exam> findAll();

    //添加试卷
    int addExam(Exam exam);

    //实现试卷发布
    int upExam(int eid);
    int downExam(int eid);

    //单行删除
    int delExam(int eid);

    //批量删除试卷
    int delExams(String ids);

    //编辑试卷
    int updateExam(Exam exam);

    //查询发布的试卷
    Exam findOnline();


}
